{
	"info": {
		"_postman_id": "f8932b2d-4f1f-4f9d-a5c3-74f782638606",
		"name": "Locatrix ESAPI",
		"description": "Postman collection for the Locatrix ESAPI.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Buildings",
			"item": [
				{
					"name": "Get Building",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Buildings/{{BuildingCode}}",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Buildings",
								"{{BuildingCode}}"
							],
							"query": [
								{
									"key": "expiry",
									"value": "120",
									"description": "Set a custom viewer token expiry time (in seconds). Default: 3600",
									"disabled": true
								},
								{
									"key": "includeCentroid",
									"value": "true",
									"description": "Whether to include the latitude and longitude of the building's centroid. Default: false",
									"disabled": true
								},
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get a building that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the building with the given building code.\n\nThe response also includes viewer tokens for accessing the building's resources via the [Plans Javascript SDK]({{ApiDocsUrl}}/plans-javascript-sdk/)."
					},
					"response": []
				},
				{
					"name": "Get Building Oulines",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Buildings/{{BuildingCode}}/Outlines",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Buildings",
								"{{BuildingCode}}",
								"Outlines"
							],
							"query": [
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get an outline from a deactivated building. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the outline of the specified building in GeoJSON format."
					},
					"response": []
				},
				{
					"name": "Create Building",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    // The campus under which to create the building [required].\r\n    \"campusCode\": \"{{CampusCode}}\",\r\n\r\n    // The name of the new building [required].\r\n    \"name\": \"New Building\",\r\n\r\n    // The address of the new building [optional].\r\n    \"address\": \"Building Address\",\r\n\r\n    // The cross-street address of the new building [optional].\r\n    \"crossStreetAddress\": \"Cross-Street Address\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Buildings",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Buildings"
							]
						},
						"description": "Creates a new building under the specified campus."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying building data or creating new buildings."
		},
		{
			"name": "Campuses",
			"item": [
				{
					"name": "Get Campus",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Campuses/{{CampusCode}}",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Campuses",
								"{{CampusCode}}"
							],
							"query": [
								{
									"key": "expiry",
									"value": "120",
									"description": "Set a custom viewer token expiry time (in seconds). Default: 3600",
									"disabled": true
								},
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get a campus that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the campus with the given campus code.\n\nThe response also includes viewer tokens for accessing the campus' resources via the [Plans Javascript SDK]({{ApiDocsUrl}}/plans-javascript-sdk/)."
					},
					"response": []
				},
				{
					"name": "Get Site Plan Metadata",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Campuses/{{CampusCode}}/Metadata",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Campuses",
								"{{CampusCode}}",
								"Metadata"
							]
						},
						"description": "Returns metadata information and a content summary of the specified campus' site plan."
					},
					"response": []
				},
				{
					"name": "Create Campus",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    // The client under which to create the campus [required].\r\n    \"clientCode\": \"{{ClientCode}}\",\r\n\r\n    // The name of the new campus [required].\r\n    \"name\": \"New Campus\",\r\n\r\n    // The address of the new campus [optional].\r\n    \"address\": \"Campus Address\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Campuses",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Campuses"
							]
						},
						"description": "Creates a new campus under the specified client."
					},
					"response": []
				},
				{
					"name": "Search Campuses",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    // The search term to use [optional, but required if coordinates are null].\r\n    \"SearchTerm\": \"New Campus\",\r\n\r\n    // The coordinate around which to centre the search [optional, but required if `SearchTerm` is null].\r\n    \"Latitude\": -27.666141645462343,\r\n    \"Longitude\": 153.1759036187515,\r\n\r\n    // The radius (in km) around the coordinates in which to search [optional, defaults to 10].\r\n    \"Radius\": 10,\r\n\r\n    // Whether the return object should include buildings [optional, defaults to false].\r\n    \"IncludeBuildings\": true,\r\n\r\n    // Whether the return object should include floors [optional, defaults to false]. Note that `IncludeBuildings` must also be set to `true`.\r\n    \"IncludeFloors\": true\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Campuses/Search",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Campuses",
								"Search"
							]
						},
						"description": "Returns a list of campuses matching the search criteria. Optionally returns the building and floor data for each campus.\n\nTwo methods of searching are available:\n- String search: Matches campuses whose names or metadata values match the specified search term.\n- Spatial search: Matches campuses whose centre is contained within the specified circle."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying campus data or creating new campuses."
		},
		{
			"name": "Clients",
			"item": [
				{
					"name": "Get Client",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Clients/{{ClientCode}}",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Clients",
								"{{ClientCode}}"
							],
							"query": [
								{
									"key": "expiry",
									"value": "120",
									"description": "Set a custom viewer token expiry time (in seconds). Default: 3600",
									"disabled": true
								},
								{
									"key": "getSitePlanMetadata",
									"value": "true",
									"description": "Whether the response should include metadata for site plans under the client. Default: false",
									"disabled": true
								},
								{
									"key": "getPlanMetadata",
									"value": "true",
									"description": "Whether the response should include metadata for floor plans under the client. Default: false",
									"disabled": true
								},
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get a client that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the client with the given client code.\n\nThe response also includes viewer tokens for accessing the client's resources via the [Plans Javascript SDK]({{ApiDocsUrl}}/plans-javascript-sdk/)."
					},
					"response": []
				},
				{
					"name": "Search Clients",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Search?q=demo",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Search"
							],
							"query": [
								{
									"key": "q",
									"value": "demo",
									"description": "The search term to use for querying clients."
								}
							]
						},
						"description": "Returns a list of clients whose names or metadata values match the specified search term."
					},
					"response": []
				},
				{
					"name": "Create a Client",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    // The name of the new client [required].\r\n    \"name\": \"New Client\",\r\n\r\n    // The address of the new client [optional].\r\n    \"address\": \"Client Address\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Clients",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Clients"
							]
						},
						"description": "Creates a new client under the partner specified in the `X-CSS-Partner-Code` header."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying client data or creating new clients."
		},
		{
			"name": "Floors",
			"item": [
				{
					"name": "Get Floor",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Floors/{{FloorCode}}",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Floors",
								"{{FloorCode}}"
							],
							"query": [
								{
									"key": "expiry",
									"value": "120",
									"description": "Set a custom viewer token expiry time (in seconds). Default: 3600",
									"disabled": true
								},
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get a floor that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the floor with the given floor code.\n\nThe response also includes viewer tokens for accessing the floor's resources via the [Plans Javascript SDK]({{ApiDocsUrl}}/plans-javascript-sdk/)."
					},
					"response": []
				},
				{
					"name": "Get Billable Area",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Floors/{{FloorCode}}/BillableArea",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Floors",
								"{{FloorCode}}",
								"BillableArea"
							],
							"query": [
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get the billable area of a floor that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns a rendered image of the billable interior area of the specified floor. This is the area that is billed when publishing a sign on that floor.\n\nAdditional information is provided in the response headers:\n- `X-Square-Meters`: The number of square meters within the billable area.\n- `X-Pixels`: The number of pixels in the returned image that are within the billable area.\n- `X-Pixels-Per-Square-Meter`: The scale/resolution of the image.\n- `X-Transparent-Pixels-Counted`: Whether the calculation included transparent (i.e. non-solid) pixels."
					},
					"response": []
				},
				{
					"name": "Get Floor Metadata",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Floors/{{FloorCode}}/Metadata",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Floors",
								"{{FloorCode}}",
								"Metadata"
							],
							"query": [
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the request can get the metadata of a floor that has been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns metadata information and a content summary of the specified floor's plan."
					},
					"response": []
				},
				{
					"name": "Create a Floor",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    // The building under which to create the floor [required].\r\n    \"buildingCode\": \"{{BuildingCode}}\",\r\n\r\n    // The name of the new floor [required].\r\n    \"name\": \"New Floor\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Floors",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Floors"
							]
						},
						"description": "Creates a new floor under the specified building."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying floor data or creating new floors."
		},
		{
			"name": "Partners",
			"item": [
				{
					"name": "Get Partners",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"value": "{{PartnerCode}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Partners",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Partners"
							],
							"query": [
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the response should include partners that have been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the list of partners accessible to the current API user, optionally including deactivated partners."
					},
					"response": []
				},
				{
					"name": "Get Partner Clients",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Partners/{{PartnerCode}}/Clients",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Partners",
								"{{PartnerCode}}",
								"Clients"
							],
							"query": [
								{
									"key": "includeDeactivated",
									"value": "true",
									"description": "Whether the response should include clients that have been deactivated. Default: false",
									"disabled": true
								}
							]
						},
						"description": "Returns the list of Clients for the specified partner, optionally also including any deactivated clients."
					},
					"response": []
				},
				{
					"name": "Get Partner Data Fields",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/Partners/{{PartnerCode}}/DataFields",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Partners",
								"{{PartnerCode}}",
								"DataFields"
							]
						},
						"description": "Returns the Data Field collection for the specified partner. Data Fields are custom pieces of data that can be attached to Features. They can be modified within the PlanStudio administration section."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying partner data."
		},
		{
			"name": "Plans",
			"item": [
				{
					"name": "Get Features",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Plans/{{PlanCode}}/Features",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Plans",
								"{{PlanCode}}",
								"Features"
							]
						},
						"description": "Returns the list of all [Features]({{ApiDocsUrl}}/plans-javascript-sdk/sdk-reference/feature.html) from the plan."
					},
					"response": []
				},
				{
					"name": "Push Features",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"features\": [\r\n        // Add an assembly area at the specified position:\r\n        {\r\n            \"type\": \"assemblyArea\",\r\n            \"position\": {\r\n                \"longitude\": 153.0210,\r\n                \"latitude\": -27.4701\r\n            }\r\n        },\r\n\r\n        // Add a fixed icon at the specified position:\r\n        {\r\n            \"type\": \"fixedIcon\",\r\n            \"position\": {\r\n                \"longitude\": 153.0210,\r\n                \"latitude\": -27.4701\r\n            },\r\n            \"icon\": {\r\n                \"iconType\": \"extinguisher_dcp\",\r\n                \"data\": []\r\n            }\r\n        },\r\n\r\n        // Add a leaderline icon to the centre of the plan, containing one icon with custom data:\r\n        {\r\n            \"type\": \"leaderLineIcon\",\r\n            \"position\": null,\r\n            \"icons\": [\r\n                {\r\n                    \"data\": [\r\n                        {\r\n                            \"key\": \"dfld_xxxxxxxxxxxxxxxxxxxxxxxxx\",\r\n                            // The name to show if the data field key cannot be found\r\n                            \"name\": \"Data field\",\r\n                            \"value\": \"Custom data\"\r\n                        }\r\n                    ],\r\n                    \"iconType\": \"extinguisher_dcp\"\r\n                }\r\n            ]\r\n        },\r\n\r\n        // Add a square room:\r\n        {\r\n            \"type\": \"room\",\r\n            \"label\": \"Room Name\",\r\n            \"geometry\": {\r\n                \"type\": \"Polygon\",\r\n\r\n                // Array of Longitude-latitude pairs forming a closed polygon, wrapped in an array to define an outline\r\n                \"coordinates\": [[\r\n                    [153.0210, -27.4701],\r\n                    [153.0211, -27.4701],\r\n                    [153.0211, -27.4702],\r\n                    [153.0210, -27.4702],\r\n                    [153.0210, -27.4701]\r\n                ]]\r\n            }\r\n        },\r\n\r\n        // Add a square identified zone:\r\n        {\r\n            \"type\": \"zone\",\r\n            \"zoneType\": \"identified\",\r\n            \"geometry\": {\r\n                \"type\": \"Polygon\",\r\n                \"coordinates\": [[\r\n                    [153.0210, -27.4701],\r\n                    [153.0211, -27.4701],\r\n                    [153.0211, -27.4702],\r\n                    [153.0210, -27.4702],\r\n                    [153.0210, -27.4701]\r\n                ]]\r\n            },\r\n            \"color\": \"red\",\r\n            \"name\": \"New zone\"\r\n        },\r\n\r\n        // Add a zoned icon:\r\n        {\r\n            \"type\": \"zonedIcon\",\r\n            \"icon\": {\r\n                \"iconType\": \"extinguisher_dcp\",\r\n                \"data\": []\r\n            },  \r\n            \"geometry\": {\r\n                \"type\": \"Polygon\",\r\n                \"coordinates\": [[\r\n                    [153.0210, -27.4701],\r\n                    [153.0211, -27.4701],\r\n                    [153.0211, -27.4702],\r\n                    [153.0210, -27.4702],\r\n                    [153.0210, -27.4701]\r\n                ]]\r\n            }\r\n        }\r\n    ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{LocatrixApiUrl}}/Plans/{{PlanCode}}/PushFeatures",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"Plans",
								"{{PlanCode}}",
								"PushFeatures"
							]
						},
						"description": "Pushes the list of provided [Features]({{ApiDocsUrl}}/plans-javascript-sdk/sdk-reference/feature.html) to the plan.\n\nSupported Feature types that can be pushed:\n- `assemblyArea`\n- `fixedIcon`\n- `leaderLineIcon`\n- `room`\n- `zone`\n- `zonedIcon`\n\nRefer to [the docs]({{ApiDocsUrl}}/esapi/api-reference/plans.html) for a complete definition of the expected object schema."
					},
					"response": []
				}
			],
			"description": "Endpoints for querying plan contents or adding new Features to plans."
		},
		{
			"name": "Documents",
			"item": [
				{
					"name": "Search documents",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/documents/search?buildingTagName=property_number&buildingTagValue=572529&documentReferenceType=evacuation_sign&documentMimeType=image/svg+xml",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"documents",
								"search"
							],
							"query": [
								{
									"key": "buildingTagName",
									"value": "property_number",
									"description": "Building tag name"
								},
								{
									"key": "buildingTagValue",
									"value": "572529",
									"description": "Building tag value"
								},
								{
									"key": "documentReferenceType",
									"value": "evacuation_sign",
									"description": "Originated resource. Ex. evacuation_sign, user_document"
								},
								{
									"key": "documentMimeType",
									"value": "image/svg+xml",
									"description": "File type"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Download document",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "X-CSS-Partner-Code",
								"type": "text",
								"value": "{{PartnerCode}}"
							}
						],
						"url": {
							"raw": "{{LocatrixApiUrl}}/documents/{{DocumentCode}}/download?version=1",
							"host": [
								"{{LocatrixApiUrl}}"
							],
							"path": [
								"documents",
								"{{DocumentCode}}",
								"download"
							],
							"query": [
								{
									"key": "version",
									"value": "1",
									"description": "Document Version"
								},
								{
									"key": "format",
									"value": null,
									"description": "Specifies format of downloaded file by extension",
									"disabled": true
								},
								{
									"key": "maxWidth",
									"value": "1000",
									"description": "Specifies the maximum width of downloaded file",
									"disabled": true
								},
								{
									"key": "quality",
									"value": "85",
									"description": "Specifies the image quality of downloaded file. Only apply to jpg",
									"disabled": true
								},
								{
									"key": "transparent",
									"value": "true",
									"description": "Specifies whether the transparent part of a svg should still be transparent after coversion. Only applicable to png.",
									"disabled": true
								},
								{
									"key": "landscape",
									"value": "true",
									"description": "Orientation",
									"disabled": true
								},
								{
									"key": "paperSize",
									"value": "A4",
									"description": "Paper size",
									"disabled": true
								}
							]
						}
					},
					"response": []
				}
			],
			"description": "Endpoints for querying documents"
		},
		{
			"name": "Get Bearer Token",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"// save the bearer token as a environment variable\r",
							"let jsonData = JSON.parse(responseBody);\r",
							"pm.environment.set(\"BearerToken\", jsonData.access_token);\r",
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "grant_type",
							"value": "password",
							"type": "text"
						},
						{
							"key": "scope",
							"value": "openid esapi-scope",
							"type": "text"
						},
						{
							"key": "client_id",
							"value": "{{ApplicationId}}",
							"type": "text"
						},
						{
							"key": "client_secret",
							"value": "{{ApplicationSecret}}",
							"type": "text"
						},
						{
							"key": "username",
							"value": "{{ApiKey}}",
							"type": "text"
						},
						{
							"key": "password",
							"value": "{{ApiSecret}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{AuthServiceUrl}}/connect/token",
					"host": [
						"{{AuthServiceUrl}}"
					],
					"path": [
						"connect",
						"token"
					]
				},
				"description": "Before accessing any ESAPI endpoint, you must first get a [bearer token]({{ApiDocsUrl}}/esapi/authentication.html#request-a-bearer-token) using your Application ID/Secret and API Key/Secret.\n\nThis Postman collection includes a Test script that, after a successful bearer token requests has been made, automatically sets the returned token as an Environment Variable to be used for the other API requests."
			},
			"response": []
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "{{BearerToken}}",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}